<?php

//require_once('../../pog/configuration.php');

include_once('../../pog/objects/class.testobject.php');

class POGTestServices
{
	public function createTestPOG ($obj)
	{
		$id = $obj->Save();
		
		return $obj->Get($id);
	}
	
	public function getTestPOG ($id)
	{
		$obj = new TestObject;
		$obj->Get($id);
		
		if ($obj->testobjectId == 0)
			return false;
		else
			return $obj;
	}
	
	public function updateTestPOG ($obj)
	{
		$id = $obj->Save();
		
		return $obj->Get($id);
	}
	
	public function deleteTestPOG ($obj)
	{
		return $obj->Delete();
	}
}

?>